<ul>
    <!-- <li><a href="#">热门 </a></li>
    <li><a href="#">男装</a></li>
    <li><a href="#">手机</a></li> -->
    <li *ngFor="let menu of menus; let i=index;">
      <!-- <a href="#" 
      [class.active]="i===selectedIndex"
      (click)="selectedIndex=i">
      {{menu.title}}</a> -->
      <a href="#" 
      [class.active]="i===selectedIndex"
      (click)="handleSelection(i)">
      {{menu.title}}</a>
      <span class="indicator" *ngIf="i===selectedIndex"></span>
    </li>
</ul>